package com.kylin.order.api.dto.resp;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 订单项详情
 * @author Damon S.
 * @version v1.0.1
 * @date 2020年12月20日 13:11
 */
@Data
@NoArgsConstructor
@ApiModel(value = "订单项详情")
public final class ItemLineRespDTO implements Serializable {

    @ApiModelProperty(value = "营销商品ID")
    private String boardId;

    @ApiModelProperty(value = "商品ID")
    private String commodityId;

    @ApiModelProperty(value = "封面图")
    private String cover;

    @ApiModelProperty(value = "单价")
    private String price;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "商品数量")
    private Integer quantity;

    @ApiModelProperty(value = "商品服务列表")
    private List<ServiceRespDTO> services;


    @Data
    @ApiModel(value = "商品服务详情")
    public static class ServiceRespDTO implements Serializable {

        @ApiModelProperty(value = "商品服务Id")
        private Long serviceId;

        @ApiModelProperty(value = "商品服务显示名称")
        private String display;

        @ApiModelProperty(value = "商品服务显示图标")
        private String icon;
    }
}
